import request from '@/utils/request'

// 查询返修工单工艺列表
export function listRetrunrepairline(query) {
  return request({
    url: '/rr/retrunrepairline/list',
    method: 'get',
    params: query
  })
}

// 查询返修工单工艺详细
export function getRetrunrepairline(recordId) {
  return request({
    url: '/rr/retrunrepairline/' + recordId,
    method: 'get'
  })
}

// 新增返修工单工艺
export function addRetrunrepairline(data) {
  return request({
    url: '/rr/retrunrepairline',
    method: 'post',
    data: data
  })
}

// 修改返修工单工艺
export function updateRetrunrepairline(data) {
  return request({
    url: '/rr/retrunrepairline',
    method: 'put',
    data: data
  })
}
// 删除
export function delRetrunrepairline(recordId) {
  return request({
    url: '/rr/retrunrepairline/' + recordId,
    method: 'delete'
  })
}
// 删除返修工单工艺
export function getLineByRepairId(repairId) {
  return request({
    url: '/rr/retrunrepairline/getLineByRepairId/' + repairId,
    method: 'get'
  })
}
export function deleteByRepairId(repairId) {
  return request({
    url: '/rr/retrunrepairline/deleteByRepairId/' + repairId,
    method: 'get'
  })
}

// 查询返修工单工艺列表
export function listProcess(query) {
  return request({
    url: '/rr/retrunrepairline/getList',
    method: 'get',
    params: query
  })
}
